(function(){
    //根据保存的信息显示可点击的按钮
    if (publicParam.usewallet=="builtIn") {
        getNode("builtIn").style.backgroundColor="#888888";
        getNode("metamask").onclick=function (){
            saveItem("usewallet","metamask");
            reload();
        };
    }else if (publicParam.usewallet=="metamask"){
        getNode("metamask").style.backgroundColor="#888888";
        getNode("builtIn").onclick=function (){
            saveItem("usewallet","builtIn");
            reload();
        };
    }
    /**
	* 清除现有信息，准备重新连接
	*/
    function reload(){
        publicParam.address = null;
        publicParam.member = null;
        publicParam.members = null;
        publicParam.provider = null;
        publicParam.walletConnected = false;
        loadPage("header");
    }
})();